<template>
    <div>
        <Modal :title="modalTitle" v-model="modalShow" :width="modalWidth" :mask-closable="false" :closable="false">
            <div class="modal-content">当前账号全宗号为空，请前去设置</div>
            <div slot="footer">
                <Button long type="default" @click="submitAction">确定</Button>
            </div>
        </Modal>
    </div>
</template>

<script>
import { } from '@/api/record'
import { } from '@/libs/tools'

export default {
  name: 'RnOptionModal',
  props: {
    modalTitle: {
      type: String,
      default: () => {
        return '温馨提示'
      }
    },
    modalType: {
      type: String,
      default: () => {
        return ''
      }
    },
    modalShow: {
      type: Boolean,
      default: () => {
        return false
      }
    },
    modalWidth: {
      type: Number,
      default: () => {
        return 500
      }
    },
    dataObj: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data () {
    return {
      btnLoading: false,
      formItem: {}
    }
  },
  methods: {
    success (val) {
      val = this.$common.xeUtils.isEmpty(val) ? '操作成功' : val
      this.$Message.success(val)
    },
    error (data) {
      this.$Message.error({
        content: '操作失败,\n' + data.errmsg
      })
    },
    submitAction () {
      this.$router.push({ name: 'recordRecordNumManager' })
    }
  },
  mounted () {
  },
  watch: {
    dataObj (val) {
      this.formItem = val
    }
  },
  computed: {}
}
</script>

<style scoped>
    /deep/ .ivu-alert-info {
        border: 1px solid #EDEFF0;
        background-color: #F8F8F9;
    }
    .modal-content {
        padding: 20px 10px 5px;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        color: #de0000;
    }
</style>
